package com.zzptc.zzsgz.bdsjws.vo;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.DaoException;
import com.zzptc.zzsgz.bdsjws.db.DaoSession;
import com.zzptc.zzsgz.bdsjws.db.BBXDao;

/**
 * Created by lc on 2017/5/23.
 */

    @Entity(
            active = true,
            nameInDb = "t_bbx_info",
            createInDb = true,
            generateConstructors = true
    )
    public class BBX {
        @Id(autoincrement = true)
        private Long id;
        @Property
        @NotNull
        private String username;
        @Property
        @NotNull
        private String icon;
        /**
         * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
         * Entity must attached to an entity context.
         */
        /**
         * Convenient call for {@link org.greenrobot.greendao.AbstractDao#refresh(Object)}.
         * Entity must attached to an entity context.
         */
        @Generated(hash = 1942392019)
        public void refresh() {
            if (myDao == null) {
                throw new DaoException("Entity is detached from DAO context");
            }
            myDao.refresh(this);
        }
        /**
         * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}.
         * Entity must attached to an entity context.
         */
        @Generated(hash = 713229351)
        public void update() {
            if (myDao == null) {
                throw new DaoException("Entity is detached from DAO context");
            }
            myDao.update(this);
        }
        /**
         * Convenient call for {@link org.greenrobot.greendao.AbstractDao#delete(Object)}.
         * Entity must attached to an entity context.
         */
        @Generated(hash = 128553479)
        public void delete() {
            if (myDao == null) {
                throw new DaoException("Entity is detached from DAO context");
            }
            myDao.delete(this);
        }
        /** called by internal mechanisms, do not call yourself. */
        @Generated(hash = 1907891071)
        public void __setDaoSession(DaoSession daoSession) {
            this.daoSession = daoSession;
            myDao = daoSession != null ? daoSession.getBBXDao() : null;
        }
        /** Used for active entity operations. */
        @Generated(hash = 1665416845)
        private transient BBXDao myDao;
        /** Used to resolve relations */
        @Generated(hash = 2040040024)
        private transient DaoSession daoSession;
        public String getIcon() {
            return this.icon;
        }
        public void setIcon(String icon) {
            this.icon = icon;
        }
        public String getUsername() {
            return this.username;
        }
        public void setUsername(String username) {
            this.username = username;
        }
        public Long getId() {
            return this.id;
        }
        public void setId(Long id) {
            this.id = id;
        }
        @Generated(hash = 156107942)
        public BBX(Long id, @NotNull String username, @NotNull String icon) {
            this.id = id;
            this.username = username;
            this.icon = icon;
        }
        @Generated(hash = 930581991)
        public BBX() {
        }
      
    }
